home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / gcc / ixemlsrc.lha / ixemul / string / Makefile.in < prev    next >
Makefile  |  1996-03-13  |  2KB  |  99 lines

  1. #### Start of system configuration section. ####
  2.  
  3. srcdir =    @srcdir@
  4.  
  5. ifeq ($(srcdir),.)
  6. srcdir = ../..
  7. endif
  8.  
  9. VPATH :=    $(srcdir)
  10.  
  11. # Common prefix for machine-independent installed files.
  12. prefix =    @prefix@
  13.  
  14. # Common prefix for machine-dependent installed files.
  15. exec_prefix =    @exec_prefix@
  16.  
  17. bindir =    $(exec_prefix)/bin
  18. libdir =    $(exec_prefix)/Sys/libs
  19.  
  20. INSTALL =    @INSTALL@
  21. INSTALL_DATA =    @INSTALL_DATA@
  22.  
  23. CC =        @CC@
  24.  
  25. CFLAGS =    @CFLAGS@
  26. LDFLAGS =    @LDFLAGS@
  27.  
  28. RANLIB =    @RANLIB@
  29. AR =        ar
  30.  
  31. #### End system configuration section ####
  32.  
  33. ifdef CATENATE
  34. DEBUG_FLAG =    -g
  35. else
  36. DEBUG_FLAG =    
  37. endif
  38.  
  39. # I *love* GNU make!
  40. define catenate
  41. /bin/echo -n creating $@...
  42. /bin/echo "$(^:%=#include \"%\"\n)" >$@
  43. /bin/echo done
  44. endef
  45.  
  46. FLAVOR_CFLAGS =    -m$(CPU) -m$(FPU)
  47. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) $(DEBUG_FLAG) $(INCS)
  48.  
  49. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  50. LIB =        libstring.a
  51.  
  52. .c.o:
  53.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  54.  
  55. SRC =        bcmp.c bcopy.c bzero.c ffs.c index.c memccpy.c memchr.c \
  56.         memcmp.c memcpy.c memmove.c memset.c rindex.c strcasecmp.c \
  57.         strcat.c strcmp.c strcoll.c strcpy.c strcspn.c strdup.c \
  58.         strerror.c strftime.c strlen.c strmode.c strncat.c strncmp.c \
  59.         strncpy.c strpbrk.c strsep.c strspn.c strstr.c strtod.c \
  60.         strtok.c strxfrm.c swab.c
  61.  
  62. OBJ =        $(SRC:.c=.o)
  63.  
  64. ifdef CATENATE
  65. ALL =        all.o
  66. else
  67. ALL =        $(OBJ)
  68. endif
  69.  
  70. $(LIB) :    $(ALL)
  71.         rm -f $@
  72.         $(AR) rv $@ $(ALL)
  73.         $(RANLIB) $@
  74.  
  75. all.c:        $(SRC)
  76.         @$(catenate)
  77.  
  78. clean:
  79.         rm -rf 680?0
  80.  
  81. clobber:    clean
  82.         rm -f Makefile
  83.  
  84. bcmp.o :    $(srcdir)/../library/defs.h
  85. bcopy.o :    $(srcdir)/../library/defs.h
  86. bzero.o :    $(srcdir)/../library/defs.h
  87. ffs.o :        $(srcdir)/../library/defs.h
  88. index.o :    $(srcdir)/../library/defs.h
  89. rindex.o :    $(srcdir)/../library/defs.h
  90. strcmp.o :    $(srcdir)/../library/defs.h
  91. strcpy.o :    $(srcdir)/../library/defs.h
  92. strdup.o :    $(srcdir)/../library/ixemul.h 
  93. strlen.o :    $(srcdir)/../library/defs.h
  94. strncmp.o :    $(srcdir)/../library/defs.h
  95. strncpy.o :    $(srcdir)/../library/defs.h
  96. strftime.o :    $(srcdir)/../library/ixemul.h 
  97. strtod.o :    $(srcdir)/../library/ixemul.h 
  98. strtok.o :    $(srcdir)/../library/ixemul.h 
  99.